<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET;?>">
<style type="text/css">
    .hd_debug{padding:10px;margin:0px;font: 14px/20px 微软雅黑;clear:both;border:solid 1px #dcdcdc;
              margin:20px; background-color:#fff;width:800px;word-wrap:word-break; word-break: break-word; }
    .hd_debug *{margin:0px;padding:0px;}
    .hd_debug .setup{ padding: 5px; border-bottom: solid 1px #dcdcdc;}
    .hd_debug .setup a{ text-decoration: none; margin-right: 20px;}
    .hd_debug tr{word-break:break-all;}
    .hd_debug #debug_link{border-bottom:solid 1px #dcdcdc;padding:10px;margin-top:0px; }
    .hd_debug #debug_link a{padding:0px 8px;text-decoration: none;}
    .hd_debug #debug_link a:hover{text-decoration:underline;}
    .hd_debug .debug_server{ line-height: 1.5em; margin-bottom: 10px; color:#333;}
    .hd_debug .debug_server a{color:#5d5d5d; text-decoration:none;}
    .hd_debug .debug_server a:hover{color:#5d5d5d; text-decoration:underline;}
    .hd_debug .debug_server address{display: inline;}
    .hd_debug  fieldset{line-height: 1.2em;}
    .hd_debug  a{color:#2F68A5;}
    .hd_debug   table{border-collapse: collapse; border: solid 1px #efefef;overflow: hidden;}
    .hd_debug   table thead td{background-color:#efefef;color:#000; padding: 3px 5px; font-size:14px; }
    .hd_debug  table tbody td{ font-size:14px;color:#333; padding:3px;
                               border-bottom: solid 1px #efefef;
    }
    .hd_debug  fieldset{padding:10px;font-size:13px; border:1px solid #D0D0D0;margin-top:10px;}
    .hd_debug  legend{padding:5px; }
    .hd_debug  p{background-color:#666;color:#fff;margin-top:10px;padding:3px;font-size:12px;}
    .hd_debug  h2{font-size:15px;font-weight: bold;color:#2F68A5;clear:both;float:none;}
</style>
 <?php if(!C("debug")){
    $errorMess = C("ERROR_MESSAGE")?C("ERROR_MESSAGE"):"系统发生错误...";
    echo "<div style='font:36px/38px 微软雅黑;color:#333;border-bottom:solid 1px #eee;width:660px;height:30px;padding:20px'>:-( ".$errorMess."</div>";
    echo "<div style='font:12px/16px 微软雅黑;color:#666;margin:10px 20px;width:660px; line-height:1.8em;'>
    1、如果开启了日志记录，可查看日志文件获得错误也可以开启debug配置项进行调试 <br/>
    2、可以通过修改配置项ERROR_TPL设置个性化的错误提示 | <a href='http://www.houdunwang.com' style='color:#666;'>后盾网 人人做后盾</a></div>";
    ?>


    <!--错误信息-->
    <?php }elseif(isset($e['message'])){?>
    <div class="hd_debug">
    <fieldset style="background:#F9F9F9;margin:0px;"><legend>ERROR</legend>
        <strong style="color:#4F5155">
            <?php
            echo $e['message'];
            ?>
        </strong>
    </fieldset>
    </div>
    <?php }?>

